﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
namespace BUS
{
    public class KhachHangBUS
    {
        public string TaoMaKHMoi()
        {
            KhachHangDAO dao = new KhachHangDAO();
            return dao.TaoMaKHMoi();
        }
        public int ThemKhachHang(KhachHangDTO khdto)
        {
             KhachHangDAO dao = new KhachHangDAO();
             return dao.ThemKhachHang(khdto);
        }
        public int CapNhatKhachHang(KhachHangDTO khdto)
        {
             KhachHangDAO dao = new KhachHangDAO();
             return dao.CapNhatKhachHang(khdto);
        }
        public List<string> LayMaKH()
        {
              KhachHangDAO dao = new KhachHangDAO();
              return dao.LayMaKH();
        }
        public KhachHangDTO ThongTinKhachHang(string MaKH)
        {
              KhachHangDAO dao = new KhachHangDAO();
              return dao.ThongTinKhachHang(MaKH);
        }

    }
}
